package com.hunt.util;

import java.math.BigDecimal;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

/**
 * @Author: ouyangan
 * @Date : 2016/10/20
 */
public class SystemConstant {
    public static final String shiro_cache_prefix = "shiro-cache-";
    public static final String shiro_cache_prefix_keys = "shiro-cache-*";
    public static final String github_client_id = "f4b35940357e82596645";
    public static final String github_client_secret = "6d11170f89e0b831d20a6ccc6d10c7e99a4963b3";
    public static final String github_oauth_url = "http://127.0.0.1:8080/oauth/github";
    //格式化
    public static final DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
    public static final DateTimeFormatter fmTime = DateTimeFormatter.ofPattern("yyyyMMdd");
    public static final DateTimeFormatter LOCAL_DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
    public static final DateTimeFormatter LOCAL_TIME_FORMATTER = DateTimeFormatter.ofPattern("HHmmss");
    public static final DateTimeFormatter LOCAL_DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
    public static final BigDecimal WEEK_UNIT = new BigDecimal(1000 * 60 * 60 * 24 * 7);
    public static final LocalTime HQ_OPEN = LocalTime.of(9,30,0);

}
